<?php



export PKG_CONFIG_PATH=/usr/local/software/curl/lib/pkgconfig:/usr/local/software/oniguruma/lib/pkgconfig:/usr/local/software/libedit/lib/pkgconfig:/usr/local/software/libxml2/lib/pkgconfig:/usr/local/opt/zlib/lib/pkgconfig:/usr/local/opt/openssl@1.1/lib/pkgconfig:/usr/local/software/libgd/lib/pkgconfig

./configure --prefix=/usr/local/software/php74 --enable-fpm --with-mysqli=mysqlnd --with-pdo-mysql=mysqlnd --with-mhash --with-openssl --with-zlib-dir=/usr/local/software/openssl@1.1 --with-bz2=/usr/local/software/bzip2 --enable-mbstring --enable-sockets --with-iconv=/usr/local/opt/libiconv/ --with-pear --enable-shared --enable-bcmath --enable-sysvmsg --enable-sysvsem --enable-sysvshm --enable-mbregex --enable-pcntl --enable-exif --enable-gd --with-external-gd --with-webp --with-jpeg --with-xpm --with-freetype --with-gettext --with-curl=/usr/local/software/curl/bin/curl



Protocols 所展示的模块，就是编译后curl所拥有的curl的模块

modongxiao@localhost OA % /usr/local/software/curl/bin/curl --version
curl 7.61.1 (x86_64-apple-darwin17.7.0) libcurl/7.61.1 OpenSSL/1.0.2t zlib/1.2.11 libidn2/2.3.0
Release-Date: 2018-09-05
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp smb smbs smtp smtps telnet tftp 
Features: AsynchDNS IDN IPv6 Largefile NTLM NTLM_WB SSL libz TLS-SRP UnixSockets HTTPS-proxy 
modongxiao@localhost OA % 



PHP操作Kafka：php-rdkafka扩展的安装
https://blog.csdn.net/msllws/article/details/106626928

#克隆安装包
https://github.com/arnaud-lb/php-rdkafka.git

#移到安装目录


#安装
/usr/local/software/php74/bin/phpize
./configure --with-php-config=/usr/local/software/php74/bin/php-config
make && make install
 
 /usr/local/software/php74/lib/php/extensions/no-debug-non-zts-20190902 


#php.ini中添加：
extension = rdkafka.so

https://pecl.php.net/package/rdkafka
rdkafka
rdkafka support => enabled
version => 3.1.3
build date => May 11 2020 16:53:50
librdkafka version (runtime) => 1.4.0-57-g5f4cd0
librdkafka version (build) => 1.4.0.255


subl /usr/local/software/php74/lib/php.ini
